
namespace Patterns4Net.ArchitectureExplorer.Documentation
{
    using System.Xml.Linq;
    using Patterns4Net.Attributes.DesignPatterns;
    using Patterns4Net.Core.Patterns;
    using Patterns4Net.Attributes;

    [NullObject]
    public class NullPatternDocProvider : IPatternDocProvider
    {
        public XElement GetDocumentation(IPattern pattern)
        {
            return null;
        }

        public string GetName(IPattern pattern)
        {
            return pattern.GetType().Name;
        }
    }
}
